projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
651df7d
)
(make_lispy_position): Only use PT if the selected window is current.
author
Chong Yidong
<cyd@stupidchicken.com>
Tue, 2 Dec 2008 23:12:56 +0000
(23:12 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Tue, 2 Dec 2008 23:12:56 +0000
(23:12 +0000)
src/keyboard.c
patch
|
blob
|
history
diff --git
a/src/keyboard.c
b/src/keyboard.c
index ad6665e60682a62f57423e5c9a0a31fbb490ef36..77d58931d14bfe0c3cec626ed859bd51c0d2334b 100644
(file)
--- a/
src/keyboard.c
+++ b/
src/keyboard.c
@@
-5304,7
+5304,8
@@
make_lispy_position (f, x, y, time)
&object, &dx, &dy, &width, &height);
if (STRINGP (string))
string_info = Fcons (string, make_number (charpos));
- if (w == XWINDOW (selected_window))
+ if (w == XWINDOW (selected_window)
+ && current_buffer == XBUFFER (w->buffer))
textpos = PT;
else
textpos = XMARKER (w->pointm)->charpos;